<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>${projectTitle }</title>
    <link rel="stylesheet" href="${webroot}/static/css/reset.css">
    <link rel="stylesheet" href="${webroot}/static/css/login.css">
    <style>
    	.input-group{
    		position: absolute;
    		left: 70px;
    		top: 20px;
    	}
    </style>
</head>
<script type="text/javascript">
//实现iframe页面 跳转到最上层页面 功能
window.onload = function () {
	//alert(top.location.href);
	//alert(location.href);
    if (top.location.href != location.href) {
    	if(location.href.toString().indexOf("?") >= 0){
	        top.location.href = location.href + "&errorMsg=" + "Login has expired or time out, please log on again!";
    	}else{
	        top.location.href = location.href + "?errorMsg=" + "Login has expired or time out, please log on again!";
    	}
    }
}
</script>
<body>
    <div id="bg" ng-app="loginPage" ng-controller="myCtrl">
       	<div id="bg-position" class="content">
           	<div class="fr forms">
            	<div class="input-group m-b-20">
					<div class="fg-line">
						<font id="error" color="red">${param.errorMsg} ${error}</font>
					</div>
				</div>
				<div class="clearfix">
					<i class="numPic fl"></i>
                 	<input class="num fl" type="text" ng-model="numbers" id="username" placeholder="用户名" />  
				</div>
				<div  class="clearfix">
					<i class="passwPic fl"></i>
					<input class="passw fl" type="password" ng-model="passwords" id = "password" placeholder="密码" />
				</div>
                 <div class="verify clearfix">
                     <input class="fl" name="" type="text" id= "verify" placeholder="验证码">
                     <div class="fl verifyNum">
                        <img id="verifyNum" src="${webroot}/getVCode" onclick="getVCode(this)"/>
                     </div>
                 </div>
                 <input class="onLogin" type="submit" onclick="doExeLogin()" value="登录"/>
                 <p class="remember clearfix" onclick="bgCheck()"><i class="noSelect"></i><span class="fl">记住密码</span></p>
               </div>
               <div class="fr logo">
	                <img src="${webroot}/static/img/loginTitle.png" alt="">
	                <button class="fr" >后台登录</button>
	            </div>
      
           </div>        
        <input id="webroot" type="hidden" value="${webroot}">
    </div>
    <script src="${webroot}/static/js/jquery-1.11.js"></script>
    <script src="${webroot}/static/js/angular.min.js"></script>
    <script src="${webroot}/static/plugins/waves-0.7.5/waves.min.js"></script>
    <script src="${webroot}/static/js/login.js"></script>
</body>
</html>